class HelloController < ApplicationController

    def index
    end
  
    def get_time
        render(:text => "<pre>" + Time.now.to_s + "</pre>")
    end
    
    def get_positions
        
        if params[:id].empty?
            position = S69Position.find('03407228127')
        else
            position = S69Position.find(params[:id] )
        end
        render(:text => '["' + position.id.to_s + '", "' + position.latitude.to_s + '", "' + position.longitude.to_s + '", "' + position.heure_fd.to_s + '"]')
    end
    
end
